package com.mhl.entity;

import android.graphics.Bitmap;

import java.util.ArrayList;

public class Product {

    private String name;
    private int imageId;
    private double price;
    private String url;
    private ArrayList<String> urls;
    private ArrayList<Integer> tags;
    private int id;
    private String description;
    private String provider_name;
    // 封面图片属性
    private int width;
    private int height;
    private Bitmap bitmap;
    public Product(){
        this.width = 0;
        this.height = 0;
        this.bitmap = null;
    }

//    public Product(String name, String price, int imageId){
//        this.name = name;
//        this.price = price;
//        this.imageId = imageId;
//    }

//    public Product(String name, String price, String url){
//        this.name = name;
//        this.price = price;
//        this.url = url;
//    }

    public String getURL() {
        return url;
    }

    public String getName() {
        return name;
    }

    public int getImageId() {
        return imageId;
    }

    public double getPrice() {
        return price;
    }

    public int getId() {
        return id;
    }

    public ArrayList<Integer> getTags() {
        return tags;
    }

    public String getDescription() { return description; }

    public ArrayList<String> getUrls() {
        return urls;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setImageId(int imageId) {
        this.imageId = imageId;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setURL(String url) {
        this.url = url;
    }

    public void setId(int id) { this.id = id; }

    public void setDescription(String description) { this.description = description; }

    public void setUrls(ArrayList<String> urls) {
        this.urls = urls;
    }

    public void setTags(ArrayList<Integer> tags) {
        this.tags = tags;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public Bitmap getBitmap() {
        return bitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
    }

    public String getProvider_name() {
        return provider_name;
    }

    public void setProvider_name(String provider_name) {
        this.provider_name = provider_name;
    }
}
